package cn.iocoder.yudao.module.pickbook.controller.admin.series.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 绘本系列新增/修改 Request VO")
@Data
public class SeriesSaveReqVO {

    @Schema(description = "系列唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17484")
    private Long id;

    @Schema(description = "系列名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "系列名称不能为空")
    private String title;

    @Schema(description = "系列描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @NotEmpty(message = "系列描述不能为空")
    private String description;

    @Schema(description = "系列封面URL", example = "https://www.iocoder.cn")
    private String coverUrl;

    @Schema(description = "显示颜色索引")
    private Integer colorIndex;

    @Schema(description = "主要语言", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "主要语言不能为空")
    private String language;

    @Schema(description = "书籍数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "23946")
    @NotNull(message = "书籍数量不能为空")
    private Integer bookCount;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

}